#include <jni.h>
#include <stdio.h>
#include "Greet.h"

JNIEXPORT void JNICALL Java_Greet_say
  (JNIEnv *env, jobject obj, jstring sentence, jint n) {
    const char* buf = env->GetStringUTFChars(sentence, NULL);
    for(int i=0; i < n; i++)
      printf("hello world from c...%s\n", buf);
    env->ReleaseStringUTFChars(sentence, buf);
  }

